/**
* -------------------------------------------------------------
* @author  cl
* @date: 2021-12-28 17:28:05
* @description: 上传文件bind表 serviceImpl
* -------------------------------------------------------------
* @version 1.0.0
* @Copyright (c) 中科星图-版权所有
*/

package com.geovis.boot.service.demo.file.serviceimpl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.geovis.boot.service.demo.file.entity.File;
import com.geovis.boot.service.demo.file.entity.FileBind;
import com.geovis.boot.service.demo.file.entity.FileInfo;
import com.geovis.boot.service.demo.file.mapper.FileBindMapper;
import com.geovis.boot.service.demo.file.mapper.FileMapper;
import com.geovis.boot.service.demo.file.service.IFileBindService;
import com.geovis.boot.service.demo.file.service.IFileService;
import com.geovis.boot.service.demo.file.vo.FileInfoVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;

import java.util.List;

/**
 * 上传文件bind表接口实现
 * @author cl
 */
@Slf4j
@Service
@Transactional
public class IFileServiceImpl extends ServiceImpl<FileMapper, File> implements IFileService {

    @Autowired
    private FileMapper fileMapper;

    @Override
    public FileInfo selectFileBinds(FileInfo fileInfo) {
        return fileMapper.selectFileBinds(fileInfo.getId());
    }
}
